package com.easylive.entity.constants;

/**
 * @Author 71740
 * @Description TODO
 * @Date 2025/4/18 22:56
 * @Version 1.0
 */
public class Constants {

    public static final Integer ONE = 1;

    public static final Integer ZERO = 0;

    public static final Integer LENGTH_10 = 10;

    public static final Integer LENGTH_30 = 30;

    public static final String REGEX_PASSWORD = "^(?=.*\\d)(?=.*[a-zA-Z])[\\da-zA-Z~!@#$%^&*_]{8,18}$";

    public static final Integer REDIS_KEY_EXPIRES_ONE_MINUTE = 60000;

    public static final Integer REDIS_KEY_EXPIRES_ONE_DAY = 60000 * 60 * 24;

    public static final Integer TIME_SECOND_ONE_DAY = REDIS_KEY_EXPIRES_ONE_DAY / 1000;

    public static final String FILE_FOLDER = "file/";

    public static final String COVER = "cover/";

    public static final String VIDEO = "video/";

    public static final String TEMP = "temp/";

    public static final String REDIS_KEY_PREFIX = "easylive";

    public static final String REDIS_KEY_CHECK_CODE = REDIS_KEY_PREFIX + "checkcode:";

    public static final String REDIS_KEY_TOKEN_WEB = REDIS_KEY_PREFIX + "token:web:";

    public static final String REDIS_KEY_TOKEN_ADMIN = REDIS_KEY_PREFIX + "token:admin:";

    public static final String TOKEN_WEB = "tokenWeb";

    public static final String TOKEN_ADMIN = "tokenAdmin";
    public static final String REDIS_KEY_CATEGORY_LIST = REDIS_KEY_PREFIX + "categoryList:";
    public static final String IMAGE_THUMBNAIL_SUFFIX = "_thumbnail.jpg";
}
